/**
 * 作者: heweiping
 * 日期: 2025-04-15 11:42:10
 * 备注: 万能活动配置表
 */
package com.motu.monstercity.server.game.commondata.act;

import io.vertx.core.json.JsonObject;

public class ActConventionModel {
    protected int id; // 分组id
    protected int type; // 主题类型 (（客户端切换主题用）1都市大扫除)
    protected String box; // 抽奖使用的宝箱id
    protected int boxShop; // 宝箱购买id
    protected String recycle; // 宝箱回收给予的道具
    protected int shop; // 兑换商店id
    protected String iap; // 礼包id

    public ActConventionModel() {
    }

    public ActConventionModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        type = obj.containsKey("type") ? obj.getInteger("type") : 0;
        box = obj.containsKey("box") ? obj.getString("box") : "";
        boxShop = obj.containsKey("box_shop") ? obj.getInteger("box_shop") : 0;
        recycle = obj.containsKey("recycle") ? obj.getString("recycle") : "";
        shop = obj.containsKey("shop") ? obj.getInteger("shop") : 0;
        iap = obj.containsKey("iap") ? obj.getString("iap") : "";
    }

    public int getId() {
        return id;
    }

    public int getType() {
        return type;
    }

    public String getBox() {
        return box;
    }

    public int getBoxShop() {
        return boxShop;
    }

    public String getRecycle() {
        return recycle;
    }

    public int getShop() {
        return shop;
    }

    public String getIap() {
        return iap;
    }

}
